package com.gakj.truck.third.core.enums;

public enum EnumIsFrozen {
    NOTFROZEN("0","未冻结"),FROZEN("1","已冻结");
	
	private String code;
	
	private String name;
	
	private EnumIsFrozen(String code,String name){
		this.code =code;
		this.name =name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public static EnumIsFrozen getEnum(String value){
		for(EnumIsFrozen e :EnumIsFrozen.values()){
			if(value.equals(e.getCode())){
				return e;
			}
		} 
		return null;
	}
	
}